home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / unix / linstd / linux.095 < prev    next >
Encoding:
Text File  |  1992-03-10  |  13.5 KB  |  314 lines

  1.  
  2.  
  3. From netnews.upenn.edu!jvnc.net!yale.edu!spool.mu.edu!olivea!uunet!mcsun!news.funet.fi!hydra!klaava!torvalds Tue Mar 10 17:57:06 EST 1992
  4.  
  5. All right: it's three days late, but finally 0.95 has been sent to
  6. nic.funet.fi.  As usual, it will probably take a few days to find it's
  7. way into a readable directory, so don't start ftp'ing right now.  I'm
  8. sure arl will inform people when it's available. 
  9.  
  10. I'm also pretty sure there will be problems setting things up again:
  11. some things have changed, and the docs are up to their usual wonderful
  12. standard.  For people that have used 0.12, there shouldn't be too many
  13. surprises, although the new harddisk names/numbers can be confusing. 
  14. Many bugs have been corrected, but there are probably new ones that have
  15. taken their place. 
  16.  
  17. One bad thing with the new setup (which will confuse new users) is that
  18. the rootdisk finally got too small for everything, and compress+tar
  19. aren't on the disk any more.  Talk about confusing, but if you have 0.12
  20. installed on your system, everything should be mostly a case of "boot
  21. from floppy, drop in the new things, and reboot with the harddisk". 
  22.  
  23. Re: patches.  There were 5 major patches (VC's, VFS, swapon, ptrace and
  24. faster floppies) that were installed, and of these only ptrace and VC's
  25. got installed without any major changes (pmacdona has had three releases
  26. to learn my coding style, and it seems to have paid off :).  The other
  27. patches are so heavily edited as to be totally unrecognizeable, and I
  28. expect my changes weren't always for the better: but I'd rather be
  29. over-conservative than use a patch even if it's great.  I expect they
  30. will still have to be edited, and hope none of the authors mind me
  31. changing their code heavily (sorry also to all those that have used the
  32. VFS routines: they'll have to wait for the next release before getting
  33. all the functionality in the alpha-VFS patches.)
  34.  
  35. Re: recompiling the kernel.  I've used most of the last week to make the
  36. kernel compileable by gcc-2, as that is what I use now.  The bootimage
  37. I've made available is compiled totally with 2.0, and the source-files
  38. are set up for that compiler.  For people without gcc-2, the kernel can
  39. still be compiled with 1.40, but you'll have to add the flag
  40. -fcombine-regs to some makefiles (without it gcc-1.40 runs out of
  41. registers, and aborts). 
  42.  
  43. I'm including the file RELNOTES-0.95, which is just the old 0.12
  44. RELNOTES edited for a new release. I'm lazy.
  45.  
  46.                 Linus
  47.  
  48. ------------------------------
  49.  
  50.  
  51.                 RELEASE NOTES FOR LINUX v0.95
  52.                 Linus Torvalds, March 7, 1992
  53.  
  54.  
  55. This is file mostly contains info on changed features of Linux, and
  56. using old versions as a help-reference might be a good idea.
  57.  
  58.  
  59.                 COPYRIGHT
  60.  
  61. Linux-0.95 is NOT public domain software, but is copyrighted by me.  The
  62. copyright conditions are the same as those imposed by the GNU copyleft:
  63. get a copy of the GNU copyleft at any major ftp-site (if it carries
  64. linux, it probably carries a lot of GNU software anyway, and they all
  65. contain the copyright). 
  66.  
  67. The copyleft is pretty detailed, but it mostly just means that you may
  68. freely copy linux for your own use, and redistribute all/parts of it, as
  69. long as you make source available (not necessarily in the same
  70. distribution, but you make it clear how people can get it for nothing
  71. more than copying costs).  Any changes you make that you distribute will
  72. also automatically fall under the GNU copyleft.
  73.  
  74. NOTE! The linux unistd library-functions (the low-level interface to
  75. linux: system calls etc) are excempt from the copyright - you may use
  76. them as you wish, and using those in your binary files won't mean that
  77. your files are automatically under the GNU copyleft.  This concerns
  78. /only/ the unistd-library and those (few) other library functions I have
  79. written: most of the rest of the library has it's own copyrights (or is
  80. public domain).  See the library sources for details of those. 
  81.  
  82.  
  83.                 INSTALLATION
  84.  
  85. This is a SHORT install-note.  The installation is very similar to 0.11
  86. and 0.12, so you should read INSTALL-0.11 too.  There are a couple of
  87. programs you will need to install linux: something that writes disk
  88. images (rawrite.exe or NU or...) and something that can create harddisk
  89. partitions (fdisk under xenix or older versions of dos, edpart.exe or
  90. something like that). 
  91.  
  92. NOTE! Repartitioning your harddisk will destroy all data on it (well,
  93. not exactly, but if you know enough to get back the data you probably
  94. didn't need this warning).  So be careful.
  95.  
  96. READ THIS THROUGH, THEN READ INSTALL-0.11, AND IF YOU ARE SURE YOU KNOW
  97. WHAT YOU ARE DOING, CONTINUE.  OTHERWISE, PANIC.  OR WRITE ME FOR
  98. EXPLANATIONS.  OR DO ANYTHING BUT INSTALL LINUX - IT'S VERY SIMPLE, BUT
  99. IF YOU DON'T KNOW WHAT YOU ARE DOING YOU'LL PROBABLY BE SORRY.  I'D
  100. RATHER ANSWER A FEW UNNECESSARY MAILS THAN GET MAIL SAYING "YOU KILLED
  101. MY HARDDISK, BASTARD.  I'M GOING TO FIND YOU, AND YOU'LL BE SORRY WHEN I
  102. DO". 
  103.  
  104. Minumum files needed:
  105.  
  106.         RELNOTES-0.95 (this file)
  107.         INSTALL-0.11 (+ any other docs you might find: the FAQ etc)
  108.         bootimage-0.96.Z
  109.         rootimage-0.95.Z
  110.         rootimage-0.12.Z  (for tar+compress)
  111.         rawrite.exe
  112.         some disk partitioner
  113.  
  114.  
  115. 1) back up everything you have on your harddisk - linux-0.95 is still in
  116.    beta and might do weird things.  The only thing I guarantee is that
  117.    it has worked fine on /my/ machine - for all I know it might eat your
  118.    harddisk and spit it out in small pieces on any other hardware. 
  119.  
  120. 2) Test out the linux boot-disk with the root file system.  If it
  121.    doesn't work, check the hardware requirements, and mail me if you
  122.    still think it should work.  I might not be able to help you, but
  123.    your bug-report would still be appreciated. 
  124.  
  125.    Linux-0.95 now has an init/login: there should be 4 logins started on
  126.    the first 4 virtual consoles.  Log in as root (no password), and test
  127.    it out.  Change to the other logins by pressing left-alt + FN[1-4]. 
  128.    Note that booting up with a floppy as root is S..L..O..W..  - the
  129.    floppy driver has been optimized for sequential access (backups etc),
  130.    and trashes somewhat with demand-loading. 
  131.  
  132.    Test that linux can read your harddisk at least partly: run the fdisk
  133.    program on the root-disk, and see if it barfs.  If it tells you about
  134.    any partitions at all, linux can successfully read at least part of
  135.    your harddisk. 
  136.  
  137.    NOTE! Harddisk device names and numbers have changed between versions
  138.    0.12 and 0.95: the new numbering system was needed for the extended
  139.    partitions, and a new naming scheme was in order so that people
  140.    wouldn't cunfuse the old devices with the new ones.
  141.  
  142.    The new harddisk device names are: /dev/hd followed by an 'a' for the
  143.    first drive, or a 'b' for the second one.  After that comes the
  144.    partition number, 1-4 for the primary partitions, 5- for possible
  145.    extended partitions.  No number means the complete disk. Like this:
  146.  
  147.         /dev/hda        the whole first harddisk (old: /dev/hd0)
  148.         /dev/hdb3       partition nr 3 on the second disk (old: /dev/hd8)
  149.  
  150. 3) Make sure that you have a free /primary/ partition.  There can be 4
  151.    primary partitions per drive: newer DOS fdisks seem to be able to
  152.    create only 2 (one primary and one extended).  In that case use some
  153.    other partitioning software: edpart.exe etc.  Linux fdisk currently
  154.    only tells you the partition info - it doesn't write to the disk. 
  155.  
  156.    Remember to check how big your partition was, as that can be used to
  157.    tell which device Linux thinks it is.
  158.  
  159.    NOTE! Linux-0.95 /might/ recognize extended partitions: but the code
  160.    for this is utterly untested, as I don't have any of those.  Do NOT
  161.    use the extended partitions unless you can verify that they are
  162.    indeed correctly set up - if my routines are wrong, writing to the
  163.    extended partitions might just overwrite some other partition
  164.    instead.  Not nice. 
  165.  
  166. 4) Boot up linux again, fdisk to make sure you now have the new
  167.    partition, and use mkfs to make a filesystem on one of the partitions
  168.    fdisk reports.  Write "mkfs -c /dev/hdX nnn" where X is the device
  169.    number reported by linux fdisk, and nnn is the size - also reported
  170.    by fdisk.  nnn is the size in /blocks/, ie kilobytes.  You should be
  171.    able to use the size info to determine which partition is represented
  172.    by which device name. 
  173.  
  174. 5) Mount the new disk partition: "mount /dev/hdX /mnt".  Copy over the
  175.    root filesystem to the harddisk, eg like this:
  176.  
  177.         # for i in bin dev etc usr tmp
  178.         # do
  179.         # cp +recursive /$i /mnt
  180.         # done
  181.  
  182.    You caanot use just "cp +recursive / /mnt", as that will result in a
  183.    loop.
  184.  
  185. 6) Sync the filesystem after you have played around enough, and reboot.
  186.  
  187.         # sync
  188.         # lo
  189.  
  190.         (none) login: sync
  191.         <wait for it to sync>
  192.         ctrl-alt-del
  193.  
  194.    THIS IS IMPORTANT! NEVER EVER FORGET TO SYNC BEFORE KILLING THE MACHINE.
  195.  
  196. 7) Change the bootdisk to understand which partition it should use as a
  197.    root filesystem.  See INSTALL-0.11: it's still the word at offset
  198.    508 into the image. You should be up and running.
  199.  
  200.  
  201. 8) When you've successfully started up with your harddisk as root, you
  202.    can mount the older rootimage (rootimage-0.12) from a floppy, and
  203.    copy over any files you find there that weren't on the newer
  204.    root-image.
  205.  
  206.    Mounting a floppy is easy: make the directory /floppy, and write:
  207.  
  208.         # mount /dev/PS0 /floppy        (if you have a 3.5" drive)
  209.  
  210.    or
  211.  
  212.         # mount /dev/at0 /floppy        (for 5.25" floppies)
  213.  
  214.    After that the files can be copied to your harddisk, eg:
  215.  
  216.         # cp /floppy/usr/bin/compress /usr/bin
  217.         # ln -s /usr/bin/compress /usr/bin/compress
  218.         # cp /floppy/usr/bin/tar.Z /usr/bin
  219.         # uncompress /usr/bin/tar.Z
  220.  
  221. That's it. Now go back and read the INSTALL-0.11, until you are sure you
  222. know what you are doing.
  223.  
  224.  
  225.                 New features of 0.95, in order of appearance
  226.                         (ie in the order you see them)
  227.  
  228.         Init/login
  229.  
  230. Yeah, thanks to poe (Peter Orbaeck (sp?)), linux now boots up like a
  231. real unix with a login-prompt.  Login as root (no passwd), and change
  232. your /etc/passwd to your hearts delight (and add other logins in
  233. /etc/inittab etc).
  234.  
  235.         Bash is even bigger
  236.  
  237. It's really a bummer to boot up from floppies: bash takes a long time to
  238. load.  Bash is also now so big that I couldn't fit compress and tar onto
  239. the root-floppy: You'll probably want the old rootimage-0.12 just in
  240. order to get tar+compress onto your harddisk.  If anybody has pointers
  241. to a simple shell that is freely distributable, it might be a good idea
  242. to use that for the root-diskette.
  243.  
  244. Especially with a small buffer-cache, things aren't fun. Don't worry:
  245. linux runs much better on a harddisk.
  246.  
  247.         Virtual consoles on any (?) hardware.
  248.  
  249. You can select one of several consoles by pressing the left alt-key and
  250. a function key at the same time. Linux should report the number of
  251. virtual consoles available upon bootup. /dev/tty0 is now "the current"
  252. screen, /dev/tty1 is the main console, and /dev/tty2-8 can exist
  253. depending on your text-mode or card.
  254.  
  255. The virtual consoles also have some new screen-handling commands: they
  256. confirm better to vt200 control codes.  Special graphic characters, and
  257. the PF1-4 keys work somewhat in the application-key mode. 
  258.  
  259.         Symbolic links.
  260.  
  261. 0.95 now allows symlinks to point to other symlinks etc (the maximum
  262. depth is a rather arbitrary 5 links). 0.12 didn't like more than one
  263. level of indirection.
  264.  
  265.         Virtual memory.
  266.  
  267. VM under 0.95 should be better than under 0.12: no more lockups (as far
  268. as I have seen), and you can now swap to the filesystem as well as to a
  269. special partition. There are two programs to handle this: mkswap to set
  270. up a swap-file/partition and swapon to start up swapping.
  271.  
  272. mkswap needs either a partition or a file that already exists to make a
  273. swap-area. To make a swap-file, do this:
  274.  
  275.         # dd bs=1024 count=NN if=/dev/hda of=swapfile
  276.         # mkswap swapfile NN
  277.  
  278. The first command just makes a file that is NN blocks long (initializing
  279. it from /dev/hda, but that could be anything). The second command then
  280. writes the necessary setup-info into the file. To start swapping, write
  281.  
  282.         # swapon swapfile
  283.  
  284. NOTE! 'dd' isn't on the rootdisk: you have to install some things onto
  285. the harddisk before you can get up and running. 
  286.  
  287. NOTE2! When linux runs totally out of virtual memory, things slow down
  288. dramatically. It tries to keep on running as long as it can, but at
  289. least it shouldn't lock up any more. ^C should work, although you might
  290. have to wait a while for it..
  291.  
  292.         Faster floppies
  293.  
  294. Ok, you don't notice this much when booting up from a floppy: bash has
  295. grown, so it takes longer to load, and the optimizations work mostly
  296. with sequential accesses.  When you start un-taring floppies to get the
  297. programs onto your harddisk, you'll notice that it's much faster now. 
  298. That should be about the only use for floppies under a unix: nobody in
  299. their right mind uses floppies as filesystems.
  300.  
  301.         Better FS-independence
  302.  
  303. Hopefully you'll never even notice this, but the filesystem has been
  304. partly rewritten to make it less minix-fs-specific. I haven't
  305. implemented all the VFS-patches I got, so it's still not ready, but it's
  306. getting there, slowly.
  307.  
  308.         And that's it, I think.
  309.  
  310. Happy hacking.
  311.  
  312.                         Linus (torvalds@kruuna.helsinki.fi)
  313.  
  314.  
  315. [/home1/c/colin/News] >